package heraclito;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Exemplos {

    public String [] GetExemplo() throws IOException{
    //Le o exemplo dos arquivos

        //Declaração de variáveis
        String Aux[];
        byte[] buffer = new byte[100000];
        InputStream in;

        try {
            //Abertura do arquivo
            in = new FileInputStream("Teste.txt");

            //Leitura do arquivo
            in.read(buffer);
            String temp = new String(buffer).trim().toString();
            in.close();

            Aux = temp.split("/r/n");

            return Aux;
            
        }catch (FileNotFoundException e) {
            System.out.println(e);
        }catch (IOException e) {
            System.out.println(e);
        }

        return new String[1];
    }
}
